#ifndef NOISE_TEXTURE_H
#define NOISE_TEXTURE_H

#include<QVector3D>
#include<texture.h>
#include<perlin.h>
class noise_texture:public texture
{
public:
    noise_texture(float sc=1):scale(sc){
        noise=new perlin();
    }
    virtual QVector3D value(float u,float v,const QVector3D&p)const{
        return QVector3D(1,1,1)*noise->noise(p*scale);
    }
    perlin*noise;
    float scale;
};

#endif // NOISE_TEXTURE_H
